<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class Greendizer_DAL_Collection</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name"><img src="../media/images/AbstractClass_logo.png"
														alt="Abstract Class"
														title="Abstract Class"
														style="vertical-align: middle"> Greendizer_DAL_Collection</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
							<a href="#sec-descendents">Descendents</a>
			|											<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
											<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
						
			</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Represents a collection of resources</p>
	<ul class="tags">
				<li><span class="field">copyright:</span> Copyright (c) 2009-2010, Greendizer S.A - All rights reserved.</li>
				<li><span class="field">abstract:</span> </li>
				<li><span class="field">license:</span> Greendizer/License.txt</li>
			</ul>
		<p class="notes">
			Located in <a class="field" href="_DAL---Collection.php.html">/DAL/Collection.php</a> (line <span class="field"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a26">26</a></span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>

	<a name="sec-descendents"></a>
	<div class="info-box">
		<div class="info-box-title">Direct descendents</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
			<span class="disabled">Descendents</span>
			|												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
								|															<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
					</div>
		<div class="info-box-body">
			<table cellpadding="2" cellspacing="0" class="class-table">
				<tr>
					<th class="class-table-header">Class</th>
					<th class="class-table-header">Description</th>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../Greendizer_Collections/Greendizer_Collections_EmailCollectionBase.html">Greendizer_Collections_EmailCollectionBase</a>
					</td>
					<td>
											Represents a collection of Emails in Greendizer
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../Greendizer_Collections/Greendizer_Collections_InvoiceCollectionBase.html">Greendizer_Collections_InvoiceCollectionBase</a>
					</td>
					<td>
											Represents a collection of Invoices in Greendizer
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../Greendizer_Collections/Greendizer_Collections_MessageCollectionBase.html">Greendizer_Collections_MessageCollectionBase</a>
					</td>
					<td>
											Represents a collection of Messages in Greendizer
										</td>
				</tr>
								<tr>
					<td style="padding-right: 2em; white-space: nowrap">
						<img src="../media/images/Class.png"
								 alt=" class"
								 title=" class"
								 style="vertical-align: center"/>
						<a href="../Greendizer_Collections/Greendizer_Collections_ThreadCollectionBase.html">Greendizer_Collections_ThreadCollectionBase</a>
					</td>
					<td>
											Represents a collection of Threads in Greendizer
										</td>
				</tr>
							</table>
		</div>
	</div>

	<a name="sec-const-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constant Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
						<span class="disabled">Constants</span> (<a href="#sec-consts">details</a>)
												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="const-summary">
								<div class="const-title">
					<img src="../media/images/Constant.png" alt=" " />
					<a href="#MAX_LENGTH" title="details" class="const-name">MAX_LENGTH</a> = 					<span class="var-type"> 199</span>

				</div>
							</div>
		</div>
	</div>

	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
					</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type"><a href="../Greendizer_DAL/Greendizer_DAL_Container.html">Greendizer_DAL_Container</a></span>
					<a href="#$container" title="details" class="var-name">$container</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">integer</span>
					<a href="#$count" title="details" class="var-name">$count</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Etag.html">Greendizer_Net_Etag</a></span>
					<a href="#$etag" title="details" class="var-name">$etag</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$resourceAsArray" title="details" class="var-name">$resourceAsArray</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type">array</span>
					<a href="#$resources" title="details" class="var-name">$resources</a>
				</div>
																<div class="var-title">
					<img src="../media/images/Variable.png" alt=" " />
					<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Uri.html">Greendizer_Net_Uri</a></span>
					<a href="#$uri" title="details" class="var-name">$uri</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
															<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																																																																																																<div class="method-definition">
					<img src="../media/images/Constructor.png" alt=" "/>
											<span class="method-result">Greendizer_DAL_Collection</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type"><a href="../Greendizer_DAL/Greendizer_DAL_Container.html">Greendizer_DAL_Container</a></span>&nbsp;<span class="var-name">$container</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$uri</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">integer</span>
										<a href="#getCount" title="details" class="method-name">getCount</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Greendizer_Net_Resource</span>
										<a href="#getResourceById" title="details" class="method-name">getResourceById</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">Greendizer_Net_Resource</span>
										<a href="#getResourceByIndex" title="details" class="method-name">getResourceByIndex</a>
											(<span class="var-type">integer</span>&nbsp;<span class="var-name">$index</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">array</span>
										<a href="#getResources" title="details" class="method-name">getResources</a>
										()
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#handleNoContentResponse" title="details" class="method-name">handleNoContentResponse</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$response</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#handleNotModifiedResponse" title="details" class="method-name">handleNotModifiedResponse</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$response</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#handleOkOrPartialResponse" title="details" class="method-name">handleOkOrPartialResponse</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$method</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$response</span>)
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#handleRequest" title="details" class="method-name">handleRequest</a>
											(<span class="var-type">string</span>&nbsp;<span class="var-name">$method</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$first</span> = <span class="var-default">0</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$count</span> = <span class="var-default">self::MAX_LENGTH</span>])
									</div>
																<div class="method-definition">
					<img src="../media/images/Method.png" alt=" "/>
											<span class="method-result">void</span>
										<a href="#populate" title="details" class="method-name">populate</a>
											([<span class="var-type">integer</span>&nbsp;<span class="var-name">$first</span> = <span class="var-default">0</span>], [<span class="var-type">interger</span>&nbsp;<span class="var-name">$count</span> = <span class="var-default">self::MAX_LENGTH</span>])
									</div>
											</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-const-summary">Constants</a> (<a href="#sec-consts">details</a>)
							
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			
<a name="var$container" id="$container"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type"><a href="../Greendizer_DAL/Greendizer_DAL_Container.html">Greendizer_DAL_Container</a></span>
			<span class="var-name">$container</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a58">58</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Container which initiated the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$count" id="$count"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">integer</span>
			<span class="var-name">$count</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a51">51</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Total number of resources</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$etag" id="$etag"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Etag.html">Greendizer_Net_Etag</a></span>
			<span class="var-name">$etag</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a37">37</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Etag of the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$resourceAsArray" id="$resourceAsArray"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$resourceAsArray</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a73">73</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Array of the resources that are part of the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$resources" id="$resources"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type">array</span>
			<span class="var-name">$resources</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a66">66</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Array (Dictionary) of the resources that are part of the collection  with resource ID as key and resource object as value</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
<a name="var$uri" id="$uri"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<img src="../media/images/Variable.png" />
		<span class="var-title">
			<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Uri.html">Greendizer_Net_Uri</a></span>
			<span class="var-name">$uri</span>
						(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a44">44</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Uri of the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendents</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Constructor.png" />
		<span class="method-title">Constructor __construct</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a81">81</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Initializes a new instance of Greendizer_DAL_Collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Greendizer_DAL_Collection</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type"><a href="../Greendizer_DAL/Greendizer_DAL_Container.html">Greendizer_DAL_Container</a></span>&nbsp;<span class="var-name">$container</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$uri</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Greendizer_DAL/Greendizer_DAL_Container.html">Greendizer_DAL_Container</a></span>
				<span class="var-name">$container</span><span class="var-description">: Container issuing the request</span>			</li>
					<li>
				<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Uri.html">Greendizer_Net_Uri</a></span>
				<span class="var-name">$uri</span><span class="var-description">: Location of the collection</span>			</li>
				</ul>
		
			
	</div>
<a name="methodgetCount" id="getCount"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getCount</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a130">130</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the total number of resources in the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">integer</span>
		<span class="method-name">
			getCount
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodgetResourceById" id="getResourceById"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getResourceById</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a105">105</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a resource in the collection given its ID</p>
	<ul class="tags">
				<li><span class="field">throws:</span> Greendizer_Collections_CollectionException</li>
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Greendizer_Net_Resource</span>
		<span class="method-name">
			getResourceById
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$id</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$id</span><span class="var-description">: Resource ID</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_EmailCollection.html#methodgetResourceById">Greendizer_Collections_Buyers_EmailCollection::getResourceById()</a>
								: Returns a email in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_EmailCollection.html#methodgetResourceById">Greendizer_Collections_Sellers_EmailCollection::getResourceById()</a>
								: Returns a email in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_InvoiceCollection.html#methodgetResourceById">Greendizer_Collections_Buyers_InvoiceCollection::getResourceById()</a>
								: Returns a invoice in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_InvoiceCollection.html#methodgetResourceById">Greendizer_Collections_Sellers_InvoiceCollection::getResourceById()</a>
								: Returns a invoice in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_MessageCollection.html#methodgetResourceById">Greendizer_Collections_Buyers_MessageCollection::getResourceById()</a>
								: Returns a message in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_MessageCollection.html#methodgetResourceById">Greendizer_Collections_Sellers_MessageCollection::getResourceById()</a>
								: Returns a message in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_ThreadCollection.html#methodgetResourceById">Greendizer_Collections_Buyers_ThreadCollection::getResourceById()</a>
								: Returns a thread in the collection given its ID
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_ThreadCollection.html#methodgetResourceById">Greendizer_Collections_Sellers_ThreadCollection::getResourceById()</a>
								: Returns a thread in the collection given its ID
							</li>
				</ul>
	</div>
<a name="methodgetResourceByIndex" id="getResourceByIndex"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getResourceByIndex</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a121">121</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns a resource in the collection give its index in the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">Greendizer_Net_Resource</span>
		<span class="method-name">
			getResourceByIndex
		</span>
					(<span class="var-type">integer</span>&nbsp;<span class="var-name">$index</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$index</span><span class="var-description">: Index of the resource in the collection</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_EmailCollection.html#methodgetResourceByIndex">Greendizer_Collections_Buyers_EmailCollection::getResourceByIndex()</a>
								: Returns a email in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_EmailCollection.html#methodgetResourceByIndex">Greendizer_Collections_Sellers_EmailCollection::getResourceByIndex()</a>
								: Returns a email in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_InvoiceCollection.html#methodgetResourceByIndex">Greendizer_Collections_Buyers_InvoiceCollection::getResourceByIndex()</a>
								: Returns a invoice in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_InvoiceCollection.html#methodgetResourceByIndex">Greendizer_Collections_Sellers_InvoiceCollection::getResourceByIndex()</a>
								: Returns a invoice in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_MessageCollection.html#methodgetResourceByIndex">Greendizer_Collections_Buyers_MessageCollection::getResourceByIndex()</a>
								: Returns a message in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_MessageCollection.html#methodgetResourceByIndex">Greendizer_Collections_Sellers_MessageCollection::getResourceByIndex()</a>
								: Returns a message in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_ThreadCollection.html#methodgetResourceByIndex">Greendizer_Collections_Buyers_ThreadCollection::getResourceByIndex()</a>
								: Returns a thread in the collection give its index in the collection
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_ThreadCollection.html#methodgetResourceByIndex">Greendizer_Collections_Sellers_ThreadCollection::getResourceByIndex()</a>
								: Returns a thread in the collection give its index in the collection
							</li>
				</ul>
	</div>
<a name="methodgetResources" id="getResources"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">getResources</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a94">94</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Returns the resources of the collection</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">array</span>
		<span class="method-name">
			getResources
		</span>
				()
			</div>
	
		
			
	</div>
<a name="methodhandleNoContentResponse" id="handleNoContentResponse"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">handleNoContentResponse</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a162">162</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles 204 No Content response</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			handleNoContentResponse
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$response</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Response.html">Greendizer_Net_Response</a></span>
				<span class="var-name">$response</span>			</li>
				</ul>
		
			
	</div>
<a name="methodhandleNotModifiedResponse" id="handleNotModifiedResponse"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">handleNotModifiedResponse</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a173">173</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles a NOT MODIFIED $response</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			handleNotModifiedResponse
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$response</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Response.html">Greendizer_Net_Response</a></span>
				<span class="var-name">$response</span>			</li>
				</ul>
		
			
	</div>
<a name="methodhandleOkOrPartialResponse" id="handleOkOrPartialResponse"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">handleOkOrPartialResponse</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a150">150</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles responses with code 200 Ok or code 206 Partial Response</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			handleOkOrPartialResponse
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$method</span>, <span class="var-type"></span>&nbsp;<span class="var-name">$response</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$method</span>			</li>
					<li>
				<span class="var-type"><a href="../Greendizer_Net/Greendizer_Net_Response.html">Greendizer_Net_Response</a></span>
				<span class="var-name">$response</span>			</li>
				</ul>
		
			
			<hr class="separator" />
		<div class="notes">Redefined in descendants as:</div>
		<ul class="redefinitions">
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_EmailCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Buyers_EmailCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_EmailCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Sellers_EmailCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_InvoiceCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Buyers_InvoiceCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_InvoiceCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Sellers_InvoiceCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_MessageCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Buyers_MessageCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_MessageCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Sellers_MessageCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Buyers/Greendizer_Collections_Buyers_ThreadCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Buyers_ThreadCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
					<li>
				<a href="../Greendizer_Collections/Greendizer_Collections_Sellers/Greendizer_Collections_Sellers_ThreadCollection.html#methodhandleOkOrPartialResponse">Greendizer_Collections_Sellers_ThreadCollection::handleOkOrPartialResponse()</a>
								: Handles responses with code 200 Ok or code 206 Partial Response
							</li>
				</ul>
	</div>
<a name="methodhandleRequest" id="handleRequest"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">handleRequest</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a185">185</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Handles a request</p>
	<ul class="tags">
				<li><span class="field">access:</span> protected</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			handleRequest
		</span>
					(<span class="var-type">string</span>&nbsp;<span class="var-name">$method</span>, [<span class="var-type">integer</span>&nbsp;<span class="var-name">$first</span> = <span class="var-default">0</span>], [<span class="var-type">integer</span>&nbsp;<span class="var-name">$count</span> = <span class="var-default">self::MAX_LENGTH</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">string</span>
				<span class="var-name">$method</span><span class="var-description">: HTTP Method</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$first</span><span class="var-description">: Index of first resource</span>			</li>
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$count</span><span class="var-description">: Number of resources requested</span>			</li>
				</ul>
		
			
	</div>
<a name="methodpopulate" id="populate"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<img src="../media/images/Method.png" />
		<span class="method-title">populate</span> (line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a140">140</a></span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Populates the collection by getting its resources.</p>
	<ul class="tags">
				<li><span class="field">access:</span> public</li>
			</ul>
	
	<div class="method-signature">
		<span class="method-result">void</span>
		<span class="method-name">
			populate
		</span>
					([<span class="var-type">integer</span>&nbsp;<span class="var-name">$first</span> = <span class="var-default">0</span>], [<span class="var-type">interger</span>&nbsp;<span class="var-name">$count</span> = <span class="var-default">self::MAX_LENGTH</span>])
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">integer</span>
				<span class="var-name">$first</span><span class="var-description">: Index of the first resource</span>			</li>
					<li>
				<span class="var-type">interger</span>
				<span class="var-name">$count</span><span class="var-description">: Number of resources to populate</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>

	<a name="sec-consts"></a>
	<div class="info-box">
		<div class="info-box-title">Class Constants</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
							<a href="#sec-descendents">Descendants</a> |
										<a href="#sec-var-summary">Constants</a> (<span class="disabled">details</span>)
						
			
												<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
														| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="constMAX_LENGTH" id="MAX_LENGTH"><!-- --></A>
<div class="evenrow">

	<div class="const-header">
		<img src="../media/images/Variable.png" />
		<span class="const-title">
			<span class="const-name">MAX_LENGTH</span>
			 = <span class="const-default"> 199</span>
			(line <span class="line-number"><a href="../__filesource/fsource_Greendizer_DAL__DALCollection.php.html#a30">30</a></span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Constant representing the maximum number of resources in one request</p>
	
	
</div>
						
		</div>
	</div>
	
	<p class="notes" id="credit">
		Documentation generated on Tue, 07 Feb 2012 12:10:06 +0000 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>